package com.ewanghuiju.app.ui.home.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ewanghuiju.app.R;
import com.ewanghuiju.app.model.bean.local.SearchHotBean;

/**
 * @author sj  qq:751943509
 * @class 搜索 热门推荐
 * @time 2020/2/20
 */
public class SearchHotAdapter extends BaseQuickAdapter<SearchHotBean, BaseViewHolder> {
    public SearchHotAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, SearchHotBean item) {
        helper.setText(R.id.tv_id, (helper.getLayoutPosition() + 1) + "");
        helper.setText(R.id.tv_title, item.getName());
        helper.setText(R.id.tv_number, item.getHeat());
    }
}
